#ifndef Image_H__
#define Image_H__
#include "Tools.h"
#include "cocos2d.h"
using namespace  cocos2d;

namespace LTGame
{

	typedef enum _Gr_Anchor{
		GR_LT,
		GR_LV,
		GR_LB,
		GR_HT,
		GR_HV,
		GR_HB,
		GR_RT,
		GR_RV,
		GR_RB
	}GR_Anchor;
	
	class Image
	{
	public:
		Image(void);
		Image(const char* fileimage);
		~Image(void);
		void drawPicture();
		void setPosition( float x,float y,float w, float h, float sx, float sy,int flix,LTCOLOR* color);
		float getImgW();
		float getImgH();
		void setPosition_special(float x,float y,float w, float h, float sx, float sy,int flix,LTCOLOR* color,int Anthor);
		static void drawImageNum(Image *img,int num,float x,float y,byte Anchor);
		static void drawHpMp(Image*img,float x,float y,float w, float h, float sx, float sy);
	private:
		CCTextureAtlas* m_texture;
	};
}
#endif // Image_h__